package com.liu.remote;

import com.liu.bean.OrderDetail;
import com.liu.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "sc-goods",configuration = {FeignConfig.class}) //声明feign客户端  同时指定  服务提供者实例名称
public interface GoodsRemoteClient {

    @PutMapping("/stock")
    String update(@RequestBody List<OrderDetail> list);
}
